import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('../components/Login.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('../components/Register.vue')
    },
    {
        path: '/',
        redirect: '/login'
    },

    {
        path: '/ProductManagement',
        name: 'productManagement',
        component: () => import('../views/product/ProductManagement.vue')
    },
]

const router = new VueRouter({
    routes
})

export default router
